//
//  HttpService.h
//  EaseMall
//
//  Created by LLMPro on 16/8/23.
//  Copyright © 2016年 LLMPro. All rights reserved.
//

#import "AFHTTPSessionManager.h"
@interface HttpService : AFHTTPSessionManager

/**
 请求成功block
 */
typedef void (^requestSuccessBlock)(id responseObj);

/**
 请求失败block
 */
typedef void (^requestFailureBlock) (NSError *error);

/**
 请求响应block
 */
typedef void (^responseBlock)(id dataObj, NSError *error);



+ (HttpService *)shardManager;


/**
 GET请求
 */
+ (void)getRequest:(NSString *)url params:(NSDictionary *)params success:(requestSuccessBlock)successHandler failure:(requestFailureBlock)failureHandler;

//post 请求
+ (void)postRequest:(NSString *)url params:(NSDictionary *)params success:(requestSuccessBlock)successHandler failure:(requestFailureBlock)failureHandler;


//网络状态监听
+ (BOOL)checkNetworkStatus;


@end
